package cn.tedu.spring.eg3;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;

@Component
public class ShopController {

    private String shopController;
    public ShopController() {
        System.out.println("ShopController()");
    }
    @Value("无所谓")
    public void setShopController(String shopController) {
        System.out.println("ShopController.setShopController()");
        this.shopController = shopController;
    }
    @PostConstruct
    public void init() {
        System.out.println("ShopController.init()");
    }
    @PreDestroy
    public void destroy() {
        System.out.println("ShopController.destroy()");
    }



}
